package com.yuyang.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuyang.common.utils.PageUtils;
import com.yuyang.gulimall.member.entity.MemberEntity;
import com.yuyang.gulimall.member.to.SocialUser;
import com.yuyang.gulimall.member.to.UserLoginTo;
import com.yuyang.gulimall.member.to.UserRegisterTo;

import java.util.Map;

/**
 * 会员
 *
 * @author yuyang
 * @email yuyang@gmail.com
 * @date 2022-11-22 21:47:45
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(UserRegisterTo userRegisterTo);

    MemberEntity login(UserLoginTo to);

    MemberEntity weiboLogin(SocialUser to);
}

